import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/home.vue'
import Jx from '../views/jx.vue'
import List from '../views/list.vue'
import No from '../views/no.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/home',
    name: 'Home',
    component: Home
  },
  {
    path: '/jx',
    name: 'Jx',
    component: Jx
  },
  {
    path: '/list',
    name: 'List',
    component: List
  },
  // 设置重定向
  {path:"/",redirect:"/home"},
  {
    path: '/*',
    name: 'No',
    component: No
  },
 
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
